#ifndef SERVER_H
#define SERVER_H

#include "player.h"
#include "poolTime.h"
#include "protocolNetwork.h"
#include "inetworkmanager.h"

#include "gamePool.h"

class Server
{
 public :
  Server(IPortableSocket::SockType type, unsigned int port);
  ~Server();

  gamePool *getGames();
  PortableNetworkManager *getNetwork();

  void loop();

 private :
  PortableNetworkManager	*_network;
  gamePool			*_games;
};

#endif
